//
//  SYPickUpViewController.m
//  BSHOUYIFANG
//
//  Created by lanou3g on 15/8/18.
//  Copyright (c) 2015年 CYB. All rights reserved.
//

#import "SYPickUpViewController.h"
#import "Header.h"
#import "SYProtocolViewController.h"
#import "SYLoginViewController.h"
@interface SYPickUpViewController ()
@property (nonatomic,strong)UITextField *phoneNumberTF;
@end

@implementation SYPickUpViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    self.navigationItem.title =@"重设密码";
    _phoneNumberTF = [[UITextField alloc] initWithFrame:CGRectMake(SCREEN_WIDTH/12,SCREEN_WIDTH/4, SCREEN_WIDTH/1.2, SCREEN_WIDTH/10)];
    _phoneNumberTF.placeholder =@"手机号";
    _phoneNumberTF.tag = 1000;
    _phoneNumberTF.borderStyle = UITextBorderStyleRoundedRect;
    
    UIButton *nextButton = [UIButton buttonWithType:UIButtonTypeCustom];
    nextButton.frame = CGRectMake(SCREEN_WIDTH/12,SCREEN_HEIGHT/3-SCREEN_WIDTH/5.3,SCREEN_WIDTH/1.2,SCREEN_WIDTH/10);
    nextButton.backgroundColor = [UIColor redColor];
    [nextButton setTitle:@"下一步" forState:UIControlStateNormal];
    nextButton.titleLabel.textColor =[UIColor whiteColor];
    [nextButton addTarget:self action:@selector(nextButtonAction:) forControlEvents:UIControlEventTouchUpInside];
    
    UILabel *protocolLabel = [[UILabel alloc] initWithFrame:CGRectMake(SCREEN_WIDTH/4.2, SCREEN_HEIGHT/2.4-SCREEN_WIDTH/5.3,SCREEN_WIDTH/2.5, 20)];
    protocolLabel.text =@"注册账号表示同意";
    protocolLabel.font = [UIFont systemFontOfSize:14];
    
    UIButton *protocolButton = [UIButton buttonWithType:UIButtonTypeCustom];
    protocolButton.frame = CGRectMake(SCREEN_WIDTH/2.05, SCREEN_HEIGHT/2.4-SCREEN_WIDTH/5.3,SCREEN_WIDTH/3, 20);
    [protocolButton setTitle:@"最终用户协议" forState:UIControlStateNormal];
    protocolButton.titleLabel.font =[UIFont systemFontOfSize:14];
    [protocolButton setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
    [protocolButton addTarget:self action:@selector(protocolButtonAction:) forControlEvents:UIControlEventTouchUpInside];
    
    UIButton *yetButton = [UIButton buttonWithType:UIButtonTypeCustom];
    yetButton.frame = CGRectMake(SCREEN_WIDTH/2 - SCREEN_WIDTH/6, SCREEN_HEIGHT/2.4-SCREEN_WIDTH/5.3 +30, SCREEN_WIDTH/3, 20);
    [yetButton setTitle:@"已有账号登录" forState:UIControlStateNormal];
    yetButton.titleLabel.font = [UIFont systemFontOfSize:14];
    [yetButton setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
    [yetButton addTarget:self action:@selector(yetButtonAction:) forControlEvents:UIControlEventTouchUpInside];
    
    [self.view addSubview:nextButton];
    [self.view addSubview:_phoneNumberTF];
    [self.view addSubview:protocolButton];
    [self.view addSubview:protocolLabel];
    [self.view addSubview:yetButton];
    // Do any additional setup after loading the view.
}

- (void)nextButtonAction:(UIButton *)sender{
    NSLog(@"下一步");
}

- (void)protocolButtonAction:(UIButton *)sender{
//    SYProtocolViewController *protocolVC = [[SYProtocolViewController alloc] init];
//    [self.navigationController pushViewController:protocolVC animated:YES];

}

- (void)yetButtonAction:(UIButton *)sender{
    //SYLoginViewController *longinVC =[[SYLoginViewController alloc]init];
   // [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
